package cm.epet.service.impl;

import java.sql.SQLException;
import java.util.ArrayList;
import cm.epet.dao.impl.PetStoreDAO;
import cm.epet.model.Pet;
import cm.epet.model.PetOwner;
import cm.epet.service.Interface.IPetStoreService;

public class PetStoreService implements IPetStoreService{
	PetStoreDAO psd;
	public PetStoreService() throws SQLException {
		psd = new PetStoreDAO();
	}
	public double breed(PetOwner po,int id,String name,String type,double price) throws SQLException {
		return psd.breed(po,id,name,type,price);
	}
	public double charge(Pet pet, PetOwner po,double price) throws SQLException {
		return psd.charge(pet,po,price);
	}
	public ArrayList<String> getAccount(PetOwner po) throws SQLException {
		return psd.getAccount(po);
	}
	public PetOwner login(String name,String password) throws SQLException {
		return psd.login(name,password);
	}
	public ArrayList<String> displayMyPet(PetOwner po) throws SQLException {
		return psd.displayMyPet(po);
	}
	public ArrayList<String> getAllStore() throws SQLException {
		return psd.getAllStore();
	}
}
